package com.example.shuiyin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("system_stats")
public class SystemStat {
    @TableId(type = IdType.AUTO)
    private Long id;
    private LocalDate date;         // 统计日期
    @TableField("stat_key")
    private String statKey;         // 统计键(registration, file_upload, watermark_add, watermark_remove, etc)
    private Long count;             // 计数
    private String metadata;        // 元数据(JSON格式)
    @TableField("created_at")
    private LocalDateTime createdAt;
    @TableField("updated_at")
    private LocalDateTime updatedAt;
} 